<?php
  //Buffer larger content areas like the main page content
  ob_start();
  require_once("auth.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="calender/tcal.css" type="text/css" rel="stylesheet">
<script src="calender/tcal.js" type="text/javascript"></script>
<style>
.tdclas{
font-family:Calibri, Arial;
font-size:18px;
font-stretch:extra-condensed;
color:#062F07
}
.rtdclass{
font-family:Calibri, Arial;
font-size:14px;
color:#000000;
}
</style>
</head>

<body>
<?php 
include("config.php");
if(isset($_REQUEST['id']))
{
$id=$_REQUEST['id'];
$data=mysql_query("select * from customers where serial='$id'");
$no=mysql_num_rows($data);
if($no!=0)
{
	while($rec=mysql_fetch_assoc($data))
	{

?>

<fieldset >
<legend style="color:#FD0002"> Customers Details</legend>
<table width="50%" style="font-family:Calibri; background-color:#FFFFFF" cellpadding="5" cellspacing="6" align="center">
<tr>
<td width="41%" class="tdclas">CustomerID : </td>
<td width="59%" class="rtdclass"><?php echo "CUST".$id; ?></td>
</tr>
<tr>
<tr>
<td width="41%" class="tdclas">CustomerName : </td>
<td width="59%" class="rtdclass"><?php echo $rec['name']; ?></td>
</tr>
<tr>

<td class="tdclas">Address :</td>
<td class="rtdclass"> <?php echo $rec['Address']; ?></td></tr>
<tr>
<td width="41%" class="tdclas">Email : </td>
<td width="59%" class="rtdclass"><?php echo $rec['email']; ?></td>
</tr><tr>
<td class="tdclas">Phone :</td>
<td class="rtdclass"><?php echo $rec['phone']; ?></td>
</tr>
</table>
</fieldset>
	<?php
	}}}
	else
	{
	?>
	<?php
	}
	?>
</body>
</html>
 <?php
  //Assign all Page Specific variables
  $pagemaincontent = ob_get_contents();
  ob_end_clean();
  $pagetitle = "Customers";
  //Apply the template
  include("master.php");
?>    